<?php

header('Content-type: application/json');
$lss = $viewModel->get("schJson");
if ($lss == NULL) {
    $lss = array();
} else {
    foreach ($lss as $ls) {
        $ls->lession_name = $ls->lession_name;
    }
}
echo $a = json_encode($lss);


